package Assignment;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        //键盘录入父母的身高
        Scanner sc = new Scanner(System.in);
        System.out.println("输入父亲的身高：");
        int fatherHeight = sc.nextInt();
        System.out.println("输入母亲的身高：");
        int motherHeight = sc.nextInt();

        //求儿子的身高
        int sonHeight = (int)((fatherHeight + motherHeight) * 1.08 / 2);
        //求女儿的身高
        int daughterHeight = (int)((fatherHeight * .0932 + motherHeight) / 2);

        System.out.println("儿子的身高为：" + sonHeight + "女儿的身高为：" + daughterHeight);
    }
}
